package com.wxy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wxy.domain.order;
import com.wxy.service.orderService;

@Controller
@RequestMapping("/sc02")
public class myController {
	@Autowired
	private orderService orderService;
	@RequestMapping("/{id}")
	@ResponseBody
	public order findById(@PathVariable(value = "id")int id) {
		return orderService.findById(id);
	}
}
